
package utserver;

import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;

public class klavyeOku extends Thread{
            
    public void run(){            
        calis();
    }    
    
    InputStream ins;
    public klavyeOku(InputStream ins){
        this.ins = ins;
    }
    
    public void calis(){
        int n = 0;
        Double r;
        String str = "";
        boolean valid = false;
        DataInputStream in = new DataInputStream(ins);

        while (! valid){            
            try
            {
                str = in.readLine();
                n = Integer.parseInt(str);
                                
                if(n == 9)
                    valid = true;
            }
            catch (NumberFormatException e)
            {
                UTServer.logger.warning("0030 a " + e.toString());
            }
            catch (IOException e)
            {
                UTServer.logger.warning("0030 b" + e.toString());
            }
        }
    }
    
    public void karakterParcala(){
        
    }
}